package com.example.xpvideo.service;

import com.example.xpvideo.entity.Notice;
import com.example.xpvideo.entity.PageResult;
import com.example.xpvideo.entity.ResponseResult;
import com.example.xpvideo.entity.req.NoticeReq;
import com.example.xpvideo.entity.req.UpdateReq;
import com.example.xpvideo.exception.ErrorException;

import java.util.List;

/**
 * (Notice)Service层
 *
 * @author 杨丽辉
 * @since 2021-09-08 11:42:55
 */

public interface NoticeService {
    ResponseResult<PageResult<List<Notice>>> list(NoticeReq noticeReq) throws ErrorException;
    ResponseResult<Object> insert(Notice notice)throws ErrorException;
    ResponseResult<Object> delete(UpdateReq updateReq)throws ErrorException;
    ResponseResult<Object> update(Notice notice)throws ErrorException;
}




